<template>
<div class="test">
  <ImageLoader   src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?fit=crop&crop=entropy&w=3456&h=2304"
                 placeholder="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?w=100"
                 :duration="3000"
                 @load="handleLoad"
  />
</div>
</template>

<script>
import ImageLoader from './'
export default {
  name: 'test',
  components: {
    ImageLoader
  },
  methods: {
    handleLoad () {
      console.log('加载完成')
    }
  }
}
</script>

<style scoped>

.test{
  width: 300px;
  height: 200px;
}
</style>
